package toman.jpa;

import toman.Prop;
import toman.Ref;

/**
 * Created by IntelliJ IDEA.
 * User: zslajchrt
 * Date: 30.4.11
 * Time: 20:55
 * To change this template use File | Settings | File Templates.
 */
public class SimplePhotoWithAlbumAndAuthor extends SimplePhotoTO {

    /**
     * The albumName parameter refers to the albumName property of this object.
     */
    @Ref("a.name=:albumName")
    private SimpleAlbumTO album;

    @Prop("author.firstName")
    private String authorFirstName;

    @Prop("author.lastName")
    private String authorLastName;

    public SimpleAlbumTO getAlbum() {
        return album;
    }

    public String getAuthorFirstName() {
        return authorFirstName;
    }

    public String getAuthorLastName() {
        return authorLastName;
    }
}
